package org.zcl.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * 用户表(UserTest)表实体类
 *
 * @author Chenglin Zhu
 * @since 2022-03-15 16:07:41
 */
@SuppressWarnings("serial")
public class UserTest extends Model<UserTest> {
    //主键
    private Integer id;
    //姓名
    private String username;
    //密码
    private String password;
    //出生日期
    private String birthday;

    @TableField(updateStrategy  = FieldStrategy.IGNORED)
    private Integer pre;

    @TableField(updateStrategy  = FieldStrategy.IGNORED)
    private Integer next;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public Integer getPre() {
        return pre;
    }

    public void setPre(Integer pre) {
        this.pre = pre;
    }

    public Integer getNext() {
        return next;
    }

    public void setNext(Integer next) {
        this.next = next;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}

